package com.itheima02;

public class 流程控制语句 {
    public static void main(String[] args) {
        //continue就是跳过这次的循环  当i=5时 跳过
        for (int i = 0; i <=10; i++) {
            if (i == 5) {
                continue;
            }
            System.out.println(i);
        }

        //break是跳出循环
        for (int i = 0; i <=10; i++) {
            if (i == 5) {
                break;
            }
            System.out.println(i);
        }

    }

}
